import type { TFunction } from "i18next";

/**
 * @description: 配置项
 */

export const TITLE_SUFFIX = (t: TFunction) => t("public.currentName"); // 标题后缀
export const EMPTY_VALUE = "-"; // 空值显示
export const LANG = "lang"; // 语言
export const VERSION = "admin_version"; // 版本

// 初始化分页数据
export const INIT_PAGINATION = {
    page: 1,
    pageSize: 20,
};

// 日期格式化
export const DATE_FORMAT = "YYYY-MM-DD";
export const TIME_FORMAT = "YYYY-MM-DD hh:mm:ss";
export const THEME_KEY = "theme_key"; // 主题

// 公共组件默认值
export const FORM_REQUIRED = [{ required: true }]; // 表单必填校验

export const MENU_ACTIONS = () => [{ value: "create", label: "是否混装" }];
